@kinetis/vector-ui 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +9 -2
  3. package/app/components/Vx/Resource/Form.vue +42 -32
  4. package/app/components/Vx/Resource/Table.vue +67 -35
  5. package/app/components/Vx/VersionBanner.vue +24 -0
  6. package/app/composables/useVectorSchema.ts +4 -1
  7. package/app/composables/useVectorVersion.ts +53 -0
  8. package/app/i18n/ar/shell.ts +8 -1
  9. package/app/i18n/de/shell.ts +8 -1
  10. package/app/i18n/en/shell.ts +8 -1
  11. package/app/i18n/es/shell.ts +8 -1
  12. package/app/i18n/fr/shell.ts +8 -1
  13. package/app/i18n/he/shell.ts +8 -1
  14. package/app/i18n/it/shell.ts +8 -1
  15. package/app/i18n/ja/shell.ts +8 -1
  16. package/app/i18n/ko/shell.ts +8 -1
  17. package/app/i18n/nl/shell.ts +8 -1
  18. package/app/i18n/pl/shell.ts +8 -1
  19. package/app/i18n/pt/shell.ts +8 -1
  20. package/app/i18n/pt-BR/shell.ts +8 -1
  21. package/app/i18n/ru/shell.ts +8 -1
  22. package/app/i18n/tr/shell.ts +8 -1
  23. package/app/i18n/uk/shell.ts +8 -1
  24. package/app/i18n/zh-Hans/shell.ts +8 -1
  25. package/app/layouts/vector.vue +1 -0
  26. package/app/types/vector.ts +2 -0
  27. package/app/utils/richtext.ts +37 -27
  28. package/dist/static/200.html +1 -0
  29. package/dist/static/404.html +1 -0
  30. package/dist/static/_nuxt/1Wg893CJ.js +2 -0
  31. package/dist/static/_nuxt/3cwKifVI.js +1 -0
  32. package/dist/static/_nuxt/69zFoWZ_.js +1 -0
  33. package/dist/static/_nuxt/6XZ9vj4j.js +1 -0
  34. package/dist/static/_nuxt/704AOQgv.js +1 -0
  35. package/dist/static/_nuxt/93QUVg9x.js +1 -0
  36. package/dist/static/_nuxt/B2iJ1o_3.js +1 -0
  37. package/dist/static/_nuxt/B2pW6ekA.js +1 -0
  38. package/dist/static/_nuxt/B4cVd0we.js +1 -0
  39. package/dist/static/_nuxt/B84pnpa0.js +1 -0
  40. package/dist/static/_nuxt/BBei3q3a.js +1 -0
  41. package/dist/static/_nuxt/BC_L7UUo.js +1 -0
  42. package/dist/static/_nuxt/BD9kIZPf.js +1 -0
  43. package/dist/static/_nuxt/BDLrTt6l.js +1 -0
  44. package/dist/static/_nuxt/BDNMzG2s.js +1 -0
  45. package/dist/static/_nuxt/BE_w8iyq.js +1 -0
  46. package/dist/static/_nuxt/BGE18wmh.js +1 -0
  47. package/dist/static/_nuxt/BHJ6uF5H.js +1 -0
  48. package/dist/static/_nuxt/BHadZK0s.js +1 -0
  49. package/dist/static/_nuxt/BIgwsxdM.js +2 -0
  50. package/dist/static/_nuxt/BKVNzrl4.js +1 -0
  51. package/dist/static/_nuxt/BKlyjday.js +1 -0
  52. package/dist/static/_nuxt/BMHE9eI3.js +1 -0
  53. package/dist/static/_nuxt/BQjkGx2Z.js +1 -0
  54. package/dist/static/_nuxt/BQpOsqaq.js +1 -0
  55. package/dist/static/_nuxt/BTiCUv4-.js +1 -0
  56. package/dist/static/_nuxt/BU5ZZxSI.js +1 -0
  57. package/dist/static/_nuxt/BW3xJdEx.js +1 -0
  58. package/dist/static/_nuxt/BX3vnbKN.js +1 -0
  59. package/dist/static/_nuxt/BX4Ngs0H.js +1 -0
  60. package/dist/static/_nuxt/BZZ1FAx7.js +1 -0
  61. package/dist/static/_nuxt/BaOEsdpg.js +1 -0
  62. package/dist/static/_nuxt/BeQ1SIR7.js +1 -0
  63. package/dist/static/_nuxt/BexbafaO.js +1 -0
  64. package/dist/static/_nuxt/BfJMvdNP.js +1 -0
  65. package/dist/static/_nuxt/BiGgsuAF.js +1 -0
  66. package/dist/static/_nuxt/Bj2vN0T9.js +10 -0
  67. package/dist/static/_nuxt/BmETWtxq.js +65 -0
  68. package/dist/static/_nuxt/BpAdDrzk.js +1 -0
  69. package/dist/static/_nuxt/BqDUx8zK.js +1 -0
  70. package/dist/static/_nuxt/BrAFYyUA.js +1 -0
  71. package/dist/static/_nuxt/BrZywLMU.js +1 -0
  72. package/dist/static/_nuxt/BsEAcWqN.js +1 -0
  73. package/dist/static/_nuxt/BsuNB234.js +1 -0
  74. package/dist/static/_nuxt/BuZABq4H.js +1 -0
  75. package/dist/static/_nuxt/BvHF-Z-c.js +1 -0
  76. package/dist/static/_nuxt/BxwA8VwS.js +1 -0
  77. package/dist/static/_nuxt/ByOYBmCq.js +1 -0
  78. package/dist/static/_nuxt/BybtooSc.js +1 -0
  79. package/dist/static/_nuxt/C-EQLWId.js +1 -0
  80. package/dist/static/_nuxt/C-ZArOUZ.js +1 -0
  81. package/dist/static/_nuxt/C0qu28Eu.js +1 -0
  82. package/dist/static/_nuxt/C6-lyaez.js +1 -0
  83. package/dist/static/_nuxt/C6NpYgVC.js +1 -0
  84. package/dist/static/_nuxt/C96C4owm.js +1 -0
  85. package/dist/static/_nuxt/C9s0nkkI.js +1 -0
  86. package/dist/static/_nuxt/CBH80FIv.js +1 -0
  87. package/dist/static/_nuxt/CBSym8If.js +1 -0
  88. package/dist/static/_nuxt/CClLW8E_.js +1 -0
  89. package/dist/static/_nuxt/CElnT3Ea.js +1 -0
  90. package/dist/static/_nuxt/CEwqGRFH.js +1 -0
  91. package/dist/static/_nuxt/CHZ0Ncxm.js +1 -0
  92. package/dist/static/_nuxt/CIJWDnwW.js +2 -0
  93. package/dist/static/_nuxt/CIM0ajR7.js +1 -0
  94. package/dist/static/_nuxt/CMwYQ92K.js +1 -0
  95. package/dist/static/_nuxt/CP1X_5v-.js +1 -0
  96. package/dist/static/_nuxt/CPKG-Ezw.js +1 -0
  97. package/dist/static/_nuxt/CPVoOeRV.js +1 -0
  98. package/dist/static/_nuxt/CUiMQC3Z.js +1 -0
  99. package/dist/static/_nuxt/CX8RCGtF.js +1 -0
  100. package/dist/static/_nuxt/CXziPYlW.js +1 -0
  101. package/dist/static/_nuxt/CYenBSuZ.js +1 -0
  102. package/dist/static/_nuxt/CZcQaOv1.js +1 -0
  103. package/dist/static/_nuxt/C_O5tpxy.js +1 -0
  104. package/dist/static/_nuxt/C_ix0rE_.js +1 -0
  105. package/dist/static/_nuxt/Ca3ZVEe7.js +1 -0
  106. package/dist/static/_nuxt/Ca_XXWNh.js +100 -0
  107. package/dist/static/_nuxt/CdblVAM1.js +1 -0
  108. package/dist/static/_nuxt/Cdoe66Zd.js +1 -0
  109. package/dist/static/_nuxt/CgjA3YY0.js +1 -0
  110. package/dist/static/_nuxt/CmLK_fgz.js +1 -0
  111. package/dist/static/_nuxt/CmNfIsu3.js +1 -0
  112. package/dist/static/_nuxt/CmjaJiRg.js +1 -0
  113. package/dist/static/_nuxt/CsxNfAL8.js +1 -0
  114. package/dist/static/_nuxt/Cszrg0h8.js +1 -0
  115. package/dist/static/_nuxt/CvYs9vdO.js +1 -0
  116. package/dist/static/_nuxt/CvbtZrze.js +1 -0
  117. package/dist/static/_nuxt/CwwYMGxb.js +1 -0
  118. package/dist/static/_nuxt/Cx1ACnK3.js +2 -0
  119. package/dist/static/_nuxt/Cy7gYmkN.js +67 -0
  120. package/dist/static/_nuxt/D-oBCPmo.js +1 -0
  121. package/dist/static/_nuxt/D2Fz9LRv.js +1 -0
  122. package/dist/static/_nuxt/DA90LVQc.js +1 -0
  123. package/dist/static/_nuxt/DDr5NNV1.js +1 -0
  124. package/dist/static/_nuxt/DE8nYAuE.js +1 -0
  125. package/dist/static/_nuxt/DIqqC1EB.js +1 -0
  126. package/dist/static/_nuxt/DJBZZkxI.js +1 -0
  127. package/dist/static/_nuxt/DKI3Cf8m.js +1 -0
  128. package/dist/static/_nuxt/DLGdZt4R.js +1 -0
  129. package/dist/static/_nuxt/DM8YsT9L.js +1 -0
  130. package/dist/static/_nuxt/DROTb0EW.js +1 -0
  131. package/dist/static/_nuxt/DS06smGS.js +1 -0
  132. package/dist/static/_nuxt/DTBUCbOt.js +1 -0
  133. package/dist/static/_nuxt/DVQyySRy.js +1 -0
  134. package/dist/static/_nuxt/DVRkMeDb.js +3 -0
  135. package/dist/static/_nuxt/DVr7GQVt.js +1 -0
  136. package/dist/static/_nuxt/DYAzCAVa.js +1 -0
  137. package/dist/static/_nuxt/DYuO8gvM.js +1 -0
  138. package/dist/static/_nuxt/DaDDSelo.js +1 -0
  139. package/dist/static/_nuxt/Dd3TSBVv.js +1 -0
  140. package/dist/static/_nuxt/DhF2C9iz.js +1 -0
  141. package/dist/static/_nuxt/Dialog.B6aT2GLZ.css +1 -0
  142. package/dist/static/_nuxt/DlN2nZBa.js +1 -0
  143. package/dist/static/_nuxt/DlidQ2Aq.js +1 -0
  144. package/dist/static/_nuxt/DmB3Fuvb.js +1 -0
  145. package/dist/static/_nuxt/DmXk1uzO.js +1 -0
  146. package/dist/static/_nuxt/DpBm5g9z.js +1 -0
  147. package/dist/static/_nuxt/DvuSvxCC.js +1 -0
  148. package/dist/static/_nuxt/Dz6TfzQ0.js +1 -0
  149. package/dist/static/_nuxt/Form.BfskSJ5D.css +1 -0
  150. package/dist/static/_nuxt/KeyValue.DF5lHbm2.css +1 -0
  151. package/dist/static/_nuxt/L-WHmHIv.js +1 -0
  152. package/dist/static/_nuxt/NeV2yZqu.js +1 -0
  153. package/dist/static/_nuxt/Notifications.BvaCltQH.css +1 -0
  154. package/dist/static/_nuxt/Number.-SYS74l4.css +1 -0
  155. package/dist/static/_nuxt/PLkDYH36.js +2 -0
  156. package/dist/static/_nuxt/Repeater.CLIPcHKX.css +1 -0
  157. package/dist/static/_nuxt/RichText.CldIBWau.css +1 -0
  158. package/dist/static/_nuxt/UDkDGLOZ.js +1 -0
  159. package/dist/static/_nuxt/VAvatar.DDw3_L_i.css +1 -0
  160. package/dist/static/_nuxt/VBreadcrumbs.wcEtvk8_.css +1 -0
  161. package/dist/static/_nuxt/VChip.DriYwOm3.css +1 -0
  162. package/dist/static/_nuxt/VContainer.ku9EbwM-.css +1 -0
  163. package/dist/static/_nuxt/VDialog.CZWf1yfq.css +1 -0
  164. package/dist/static/_nuxt/VDivider.DvkP_iX7.css +1 -0
  165. package/dist/static/_nuxt/VEmptyState.CUCeAAw2.css +1 -0
  166. package/dist/static/_nuxt/VFileInput.DPM4qn3r.css +1 -0
  167. package/dist/static/_nuxt/VIcon.DTxGzRyY.css +1 -0
  168. package/dist/static/_nuxt/VImg.DG7aP0kv.css +1 -0
  169. package/dist/static/_nuxt/VInput.BzI_hIki.css +1 -0
  170. package/dist/static/_nuxt/VList.-4d3zhl1.css +1 -0
  171. package/dist/static/_nuxt/VMenu.DCy1EQlK.css +1 -0
  172. package/dist/static/_nuxt/VOverlay.DObTzQ9r.css +1 -0
  173. package/dist/static/_nuxt/VProgressLinear.DJ_RCe6L.css +1 -0
  174. package/dist/static/_nuxt/VRow.CqfueTd7.css +1 -0
  175. package/dist/static/_nuxt/VSelect.CuBPwPXI.css +1 -0
  176. package/dist/static/_nuxt/VSelectionControl.DhiKR_Yu.css +1 -0
  177. package/dist/static/_nuxt/VSkeletonLoader.BXLoM9sb.css +1 -0
  178. package/dist/static/_nuxt/VSlideGroup.BEHBZMHn.css +1 -0
  179. package/dist/static/_nuxt/VSpacer.DfbUir7X.css +1 -0
  180. package/dist/static/_nuxt/VTabs.Bt5lJEqb.css +1 -0
  181. package/dist/static/_nuxt/XOH5_ek4.js +1 -0
  182. package/dist/static/_nuxt/_id_.DBl2xP4F.css +1 -0
  183. package/dist/static/_nuxt/_resource_.C0QgZA88.css +1 -0
  184. package/dist/static/_nuxt/autofocus.Dpzbb23r.css +1 -0
  185. package/dist/static/_nuxt/builds/latest.json +1 -0
  186. package/dist/static/_nuxt/builds/meta/9d91b9fa-6f5d-4be5-9c56-28ae67d7b2f9.json +1 -0
  187. package/dist/static/_nuxt/d01KSe8e.js +1 -0
  188. package/dist/static/_nuxt/e7XpxcTK.js +1 -0
  189. package/dist/static/_nuxt/entry.C1pc8lLu.css +1 -0
  190. package/dist/static/_nuxt/error-404.BxuWml28.css +1 -0
  191. package/dist/static/_nuxt/error-500.CAMGvsGG.css +1 -0
  192. package/dist/static/_nuxt/g4Mjoenv.js +1 -0
  193. package/dist/static/_nuxt/gXzQcNWB.js +1 -0
  194. package/dist/static/_nuxt/iWiuSxmQ.js +1 -0
  195. package/dist/static/_nuxt/jDoGFcUw.js +1 -0
  196. package/dist/static/_nuxt/materialdesignicons-webfont.B7mPwVP_.ttf +0 -0
  197. package/dist/static/_nuxt/materialdesignicons-webfont.CSr8KVlo.eot +0 -0
  198. package/dist/static/_nuxt/materialdesignicons-webfont.Dp5v-WZN.woff2 +0 -0
  199. package/dist/static/_nuxt/materialdesignicons-webfont.PXm3-2wK.woff +0 -0
  200. package/dist/static/_nuxt/qg2CqsMc.js +1 -0
  201. package/dist/static/_nuxt/rRvgHT1I.js +2 -0
  202. package/dist/static/_nuxt/ripple.BF-Re9AG.css +1 -0
  203. package/dist/static/_nuxt/saFSMwUn.js +1 -0
  204. package/dist/static/_nuxt/sfwOLBCo.js +1 -0
  205. package/dist/static/_nuxt/vector.Ib8iLFrj.css +1 -0
  206. package/dist/static/_nuxt/wYGZ1W5f.js +1 -0
  207. package/dist/static/_nuxt/wYohQiph.js +1 -0
  208. package/dist/static/_nuxt/zi3w18zk.js +1 -0
  209. package/dist/static/index.html +1 -0
  210. package/dist/static/jobs/index.html +1 -0
  211. package/dist/static/login/index.html +1 -0
  212. package/dist/static/settings/index.html +1 -0
  213. package/dist/static/vector-bundle.json +193 -0
  214. package/nuxt.config.ts +8 -0
  215. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.11.0] - 2026-10-23
11
+
12
+ ### Added
13
+
14
+ - The package ships the hosted admin bundle in `dist/static`, with its
15
+ `vector-bundle.json` manifest; `kinetis vector:install-ui` installs it
16
+ from the npm registry. Packing refuses a missing bundle or one built
17
+ for another version.
18
+ - A banner at the top of the admin says when this UI is not the
19
+ `@kinetis/vector-ui` release the server's kinetis/vector pins (the
20
+ descriptor's `ui.expected`), with the remedy for how it is deployed:
21
+ run `vector:install-ui` and restart the workers when hosted, upgrade
22
+ the package and rebuild when used as a layer. Dismissed, it stays away
23
+ for the browser session. The layer's own version is in
24
+ `runtimeConfig.public.vector.uiVersion`.
25
+
26
+ ### Changed
27
+
28
+ - The unsupported-descriptor error names the same deployment-specific
29
+ remedy.
30
+ - Requires Node `^22.22.3 || ^24.15.0 || >=26.0.0`, as Nuxt 4.6 does.
31
+
32
+ ## [0.10.4] - 2026-10-22
33
+
34
+ ### Changed
35
+
36
+ - The resource form, the resource table and the rich-text schema are
37
+ split into smaller functions. Their behavior is unchanged.
38
+
10
39
  ## [0.10.3] - 2026-10-22
11
40
 
12
41
  ### Changed
package/README.md CHANGED
@@ -27,10 +27,15 @@ a Nuxt 4 layer on Vuetify 4 that renders the descriptor the API
27
27
  publishes — navigation, lists, forms, relation panels, actions,
28
28
  dashboards, jobs, settings — and contains no application knowledge. An
29
29
  application is a Nuxt app that extends the layer, served as a static
30
- site on its own origin with a bearer token (standalone), or published
30
+ site on its own origin with a bearer token (standalone), or installed
31
31
  into the PHP application and served at `/vector/ui` behind its session
32
32
  (hosted).
33
33
 
34
+ The package also ships that hosted build, in `dist/static` with its
35
+ `vector-bundle.json` manifest: `kinetis vector:install-ui` downloads it
36
+ from the registry and installs it, so a PHP deployment needs no Node.
37
+ See [Deployment](https://kinetis.dev/vector/docs/deployment.html).
38
+
34
39
  ## Installation
35
40
 
36
41
  ```sh
@@ -49,7 +54,9 @@ export default defineNuxtConfig({
49
54
  any web server hosts. The API allows the UI's origin through
50
55
  `CorsMiddleware` and offers the `POST /auth/login` endpoint the sign-in
51
56
  page calls; see
52
- [Deployment](https://kinetis.dev/vector/docs/deployment.html).
57
+ [Deployment](https://kinetis.dev/vector/docs/deployment.html). Keep this
58
+ package at the release your `kinetis/vector` pins: the admin shows a
59
+ banner naming both versions when they differ.
53
60
 
54
61
  ## Configuration
55
62
 
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { SubmitEventPromise } from 'vuetify'
3
3
  import type { VectorField, VectorFieldState, VectorLayoutNode, VectorRecord, VectorResource } from '#vector/app/types/vector'
4
- import { violationsOf } from '#vector/app/utils/internal/violations'
4
+ import { type Violation, violationsOf } from '#vector/app/utils/internal/violations'
5
5
 
6
6
  // A create or edit form generated from the descriptor: one input per
7
7
  // editable field, client rules mirroring the server's, and the server's
@@ -205,48 +205,58 @@ async function save({ valid, errors }: { valid: boolean, errors: { id: string |
205
205
  }
206
206
 
207
207
  try {
208
- let response
209
-
210
- if (props.operation === 'create') {
211
- response = await client.create(payload(false))
212
- } else {
213
- const version = props.record?._version as number | undefined
214
- response = await client.update(props.record!.id, payload(true), version)
215
- }
208
+ const response = await persist()
216
209
 
217
210
  notifications.success(t('record.saved', { label: props.resource.labelSingular }))
218
211
  // what is saved is no longer a change: leaving now asks nothing
219
212
  for (const field of fields.value) initial[field.name] = clone(values[field.name])
220
213
  emit('saved', response.data, variant)
221
214
  } catch (error) {
222
- const failure = error as { status?: number, statusCode?: number, data?: { errors?: unknown } } | null
223
- const violations = failure?.data?.errors
224
-
225
- if ((failure?.status ?? failure?.statusCode) === 422 && Array.isArray(violations)) {
226
- for (const violation of violationsOf(violations)) {
227
- // a repeater row's own violation stays with its row: `lines.2.quantity`
228
- const repeated = violation.path.length >= 3 && fields.value.some(f => f.name === violation.path[0] && f.repeater)
229
- const key = repeated ? violation.path.slice(0, 3).join('.') : String(violation.path[0] ?? '')
230
-
231
- if (key && (key in values || repeated)) {
232
- serverErrors[key] ??= []
233
- serverErrors[key].push(`${violation.message.charAt(0).toUpperCase()}${violation.message.slice(1)}`)
234
- } else {
235
- formError.value = violation.message
236
- }
237
- }
238
-
239
- if (!formError.value && Object.keys(serverErrors).length === 0) {
240
- formError.value = t('common.serverRejected')
241
- }
242
- } else {
243
- formError.value = vectorErrorMessage(error)
244
- }
215
+ showFailure(error)
245
216
  } finally {
246
217
  submitting.value = false
247
218
  }
248
219
  }
249
220
 
221
+ /** Creates the record, or updates it with what changed. */
222
+ function persist() {
223
+ if (props.operation === 'create') return client.create(payload(false))
224
+
225
+ const version = props.record?._version as number | undefined
226
+ return client.update(props.record!.id, payload(true), version)
227
+ }
228
+
229
+ /** A failed save: the server's 422 mapped onto the fields it names, anything else above the form. */
230
+ function showFailure(error: unknown) {
231
+ const failure = error as { status?: number, statusCode?: number, data?: { errors?: unknown } } | null
232
+ const violations = failure?.data?.errors
233
+
234
+ if ((failure?.status ?? failure?.statusCode) !== 422 || !Array.isArray(violations)) {
235
+ formError.value = vectorErrorMessage(error)
236
+ return
237
+ }
238
+
239
+ for (const violation of violationsOf(violations)) showViolation(violation)
240
+
241
+ if (!formError.value && Object.keys(serverErrors).length === 0) {
242
+ formError.value = t('common.serverRejected')
243
+ }
244
+ }
245
+
246
+ /** One violation under the field it names, or above the form when it names none the form holds. */
247
+ function showViolation(violation: Violation) {
248
+ // a repeater row's own violation stays with its row: `lines.2.quantity`
249
+ const repeated = violation.path.length >= 3 && fields.value.some(f => f.name === violation.path[0] && f.repeater)
250
+ const key = repeated ? violation.path.slice(0, 3).join('.') : String(violation.path[0] ?? '')
251
+
252
+ if (key && (key in values || repeated)) {
253
+ serverErrors[key] ??= []
254
+ serverErrors[key].push(`${violation.message.charAt(0).toUpperCase()}${violation.message.slice(1)}`)
255
+ } else {
256
+ formError.value = violation.message
257
+ }
258
+ }
259
+
250
260
  /** Create sends every editable field; update sends only what changed. */
251
261
  function payload(onlyChanged: boolean): Record<string, unknown> {
252
262
  const body: Record<string, unknown> = {}
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { fieldProps, type VectorAction, type VectorExportFormat, type VectorField, type VectorFilterGroup, type VectorFilterQuery, type VectorFilters, type VectorListState, type VectorPage, type VectorRecord, type VectorResource, type VectorSelection, type VectorSort, type VectorSavedView } from '#vector/app/types/vector'
3
3
  import type { VectorPageStep } from '#vector/app/composables/useVectorCursorPager'
4
- import { violationsOf } from '#vector/app/utils/internal/violations'
4
+ import { type Violation, violationsOf } from '#vector/app/utils/internal/violations'
5
5
 
6
6
  // The list view: a server-driven table whose every option — page, size,
7
7
  // sort, filters, search, grouping, columns — becomes one list request,
@@ -192,38 +192,62 @@ function setPerPage(perPage: number) {
192
192
  // --- views ------------------------------------------------------------
193
193
  const viewMenu = ref<{ views: VectorSavedView[] } | null>(null)
194
194
 
195
+ /** A stored filter as the bar edits it. */
196
+ interface DecodedFilter {
197
+ filters: VectorFilters
198
+ groups: VectorFilterGroup[]
199
+ advanced: VectorFilterQuery[]
200
+ trashed: 'without' | 'only' | 'with'
201
+ }
202
+
195
203
  /**
196
204
  * A stored filter back into what the bar edits: its conditions, its
197
205
  * "any of" groups of plain alternatives, and anything deeper kept as it
198
206
  * is. Conditions on fields this account cannot see are dropped.
199
207
  */
200
- function decodeFilter(filter: VectorFilterQuery, known: Set<string>) {
201
- const out = { filters: {} as VectorFilters, groups: [] as VectorFilterGroup[], advanced: [] as VectorFilterQuery[], trashed: 'without' as 'without' | 'only' | 'with' }
202
- const plain = (node: VectorFilterQuery): node is VectorFilters => Object.entries(node).every(([k, v]) => k !== 'or' && k !== 'and' && k !== 'trashed' && typeof v === 'object' && !Array.isArray(v))
208
+ function decodeFilter(filter: VectorFilterQuery, known: Set<string>): DecodedFilter {
209
+ const out: DecodedFilter = { filters: {}, groups: [], advanced: [], trashed: 'without' }
203
210
 
204
211
  for (const [key, spec] of Object.entries(filter)) {
205
- if (key === 'trashed') {
206
- const value = typeof spec === 'string' ? spec : (spec as Record<string, string> | undefined)?.eq ?? (spec as Record<string, string> | undefined)?.['']
207
- out.trashed = (value === 'only' || value === 'with' ? value : 'without')
208
- } else if (key === 'or' && Array.isArray(spec)) {
209
- if (spec.every(plain)) out.groups.push(spec.map(a => Object.fromEntries(Object.entries(a).filter(([name]) => known.has(name)))).filter(a => Object.keys(a).length > 0))
210
- else out.advanced.push({ or: spec })
211
- } else if (key === 'and' && Array.isArray(spec)) {
212
- for (const child of spec) {
213
- const inner = decodeFilter(child, known)
214
- for (const [name, ops] of Object.entries(inner.filters)) out.filters[name] = { ...out.filters[name], ...ops }
215
- out.groups.push(...inner.groups)
216
- out.advanced.push(...inner.advanced)
217
- }
218
- } else if (known.has(key) && spec !== undefined && !Array.isArray(spec)) {
219
- out.filters[key] = typeof spec === 'string' ? { eq: spec } : { ...spec }
220
- }
212
+ if (key === 'trashed') out.trashed = decodeTrashed(spec)
213
+ else if (key === 'or' && Array.isArray(spec)) decodeAlternatives(out, spec, known)
214
+ else if (key === 'and' && Array.isArray(spec)) decodeConjunction(out, spec, known)
215
+ else if (known.has(key) && spec !== undefined && !Array.isArray(spec)) out.filters[key] = typeof spec === 'string' ? { eq: spec } : { ...spec }
221
216
  }
222
217
 
223
218
  out.groups = out.groups.filter(g => g.length > 0)
224
219
  return out
225
220
  }
226
221
 
222
+ /** Whether a filter node is plain conditions: no `or`, `and` or `trashed`, every value an operator object. */
223
+ const plainConditions = (node: VectorFilterQuery): node is VectorFilters => Object.entries(node).every(([k, v]) => k !== 'or' && k !== 'and' && k !== 'trashed' && typeof v === 'object' && !Array.isArray(v))
224
+
225
+ /** A stored `trashed`, as a string or an operator: anything it does not know is "without". */
226
+ function decodeTrashed(spec: VectorFilterQuery[string]): DecodedFilter['trashed'] {
227
+ const value = typeof spec === 'string' ? spec : (spec as Record<string, string> | undefined)?.eq ?? (spec as Record<string, string> | undefined)?.['']
228
+ return value === 'only' || value === 'with' ? value : 'without'
229
+ }
230
+
231
+ /** An `or` the bar can edit as a group of plain alternatives, its unknown fields dropped; any deeper one kept as it is. */
232
+ function decodeAlternatives(out: DecodedFilter, spec: VectorFilterQuery[], known: Set<string>) {
233
+ if (!spec.every(plainConditions)) {
234
+ out.advanced.push({ or: spec })
235
+ return
236
+ }
237
+
238
+ out.groups.push(spec.map(a => Object.fromEntries(Object.entries(a).filter(([name]) => known.has(name)))).filter(a => Object.keys(a).length > 0))
239
+ }
240
+
241
+ /** An `and`: each of its children decoded and merged into `out`. */
242
+ function decodeConjunction(out: DecodedFilter, spec: VectorFilterQuery[], known: Set<string>) {
243
+ for (const child of spec) {
244
+ const inner = decodeFilter(child, known)
245
+ for (const [name, ops] of Object.entries(inner.filters)) out.filters[name] = { ...out.filters[name], ...ops }
246
+ out.groups.push(...inner.groups)
247
+ out.advanced.push(...inner.advanced)
248
+ }
249
+ }
250
+
227
251
  function applyView(view: VectorSavedView | null) {
228
252
  activeView.value = view?.id ?? null
229
253
  const s = view?.state ?? {}
@@ -405,26 +429,34 @@ async function saveChanges() {
405
429
  discardChanges()
406
430
  await load()
407
431
  } catch (error) {
408
- const failure = error as { status?: number, statusCode?: number, data?: { errors?: unknown } } | null
409
- const status = failure?.status ?? failure?.statusCode
410
-
411
- if (status === 422 && Array.isArray(failure?.data?.errors)) {
412
- for (const violation of violationsOf(failure.data.errors)) {
413
- const [, index, field] = violation.path
414
- const change = typeof index === 'number' ? list[index] : undefined
415
- if (change && typeof field === 'string' && field in change.values) cellErrors[cellKey(change.id, field)] = violation.message
416
- else notifications.error(field ? `${String(field)}: ${violation.message}` : violation.message)
417
- }
418
- } else if (status === 409) {
419
- notifications.error(t('list.inline.conflict'))
420
- } else {
421
- notifications.error(vectorErrorMessage(error))
422
- }
432
+ showChangesFailure(error, list)
423
433
  } finally {
424
434
  savingChanges.value = false
425
435
  }
426
436
  }
427
437
 
438
+ /** A changeset the server refused: a 422 on the cells it names, a conflict or any other failure as a notification. */
439
+ function showChangesFailure(error: unknown, list: { id: string | number, values: Record<string, unknown> }[]) {
440
+ const failure = error as { status?: number, statusCode?: number, data?: { errors?: unknown } } | null
441
+ const status = failure?.status ?? failure?.statusCode
442
+
443
+ if (status === 422 && Array.isArray(failure?.data?.errors)) {
444
+ for (const violation of violationsOf(failure.data.errors)) showChangeViolation(violation, list)
445
+ } else if (status === 409) {
446
+ notifications.error(t('list.inline.conflict'))
447
+ } else {
448
+ notifications.error(vectorErrorMessage(error))
449
+ }
450
+ }
451
+
452
+ /** One violation of a changeset, `changes.{index}.{field}`: on its cell when that cell changed, else as a notification. */
453
+ function showChangeViolation(violation: Violation, list: { id: string | number, values: Record<string, unknown> }[]) {
454
+ const [, index, field] = violation.path
455
+ const change = typeof index === 'number' ? list[index] : undefined
456
+ if (change && typeof field === 'string' && field in change.values) cellErrors[cellKey(change.id, field)] = violation.message
457
+ else notifications.error(field ? `${String(field)}: ${violation.message}` : violation.message)
458
+ }
459
+
428
460
  async function mayLeave(): Promise<boolean> {
429
461
  if (!pendingCount.value) return true
430
462
  return await confirm({ title: t('list.inline.leaveTitle', { count: pendingCount.value }, pendingCount.value), text: t('list.inline.leaveText'), confirmText: t('list.inline.discard'), destructive: true })
@@ -0,0 +1,24 @@
1
+ <script setup lang="ts">
2
+ // The UI is not the @kinetis/vector-ui release kinetis/vector pins: said
3
+ // once at the top of the shell, with the remedy for how it is deployed.
4
+ // Dismissed, it stays away for this browser session.
5
+ const { current, expected, visible, remedy, dismiss } = useVectorVersion()
6
+ const { t } = useVectorT()
7
+ </script>
8
+
9
+ <template>
10
+ <v-alert
11
+ v-if="visible"
12
+ type="warning"
13
+ variant="tonal"
14
+ density="compact"
15
+ rounded="0"
16
+ icon="mdi-update"
17
+ class="px-6 vx-version-banner"
18
+ closable
19
+ :close-label="t('shell.version.dismiss')"
20
+ @click:close="dismiss"
21
+ >
22
+ {{ t('shell.version.mismatch', { current, expected: expected ?? '' }) }} {{ remedy }}
23
+ </v-alert>
24
+ </template>
@@ -26,12 +26,15 @@ export function useVectorSchema() {
26
26
 
27
27
  loading.value = true
28
28
  const request = ++latestLoad
29
+ // read before the await: the refusal below must not need the app context
30
+ const { hosted } = useVectorRuntime()
29
31
 
30
32
  try {
31
33
  const answer = await api<VectorSchema>('/vector/schema')
32
34
 
33
35
  if (answer?.version !== DESCRIPTOR_VERSION) {
34
- throw new Error(vt('shell.unsupportedDescriptor', { version: String(answer?.version), supported: DESCRIPTOR_VERSION }))
36
+ // a hard stop: the remedy is the drift banner's, for how this UI is deployed
37
+ throw new Error(vt('shell.unsupportedDescriptor', { version: String(answer?.version), supported: DESCRIPTOR_VERSION, remedy: vectorUiRemedy(answer?.ui?.expected ?? null, hosted) }))
35
38
  }
36
39
 
37
40
  if (request === latestLoad) {
@@ -0,0 +1,53 @@
1
+ // Where a dismissal is remembered: this browser session only, and only for
2
+ // the pair of versions it was dismissed for.
3
+ const DISMISSED = 'vector.uiVersion.dismissed'
4
+
5
+ /** The npm package this UI is, as kinetis/vector's resources/ui.json pins it. */
6
+ export const UI_PACKAGE = '@kinetis/vector-ui'
7
+
8
+ /**
9
+ * What to do about a UI that is not the one kinetis/vector expects, in
10
+ * the words of how it is deployed: a hosted bundle (`window.__VECTOR__`
11
+ * present, `useVectorRuntime().hosted`) is reinstalled on the server, a
12
+ * layer is upgraded and rebuilt. The mode is passed in, read by the caller
13
+ * before any await, and nothing here needs the Nuxt app context.
14
+ */
15
+ export function vectorUiRemedy(expected: string | null, hosted: boolean): string {
16
+ if (hosted) {
17
+ return vt('shell.version.hostedRemedy')
18
+ }
19
+
20
+ return expected === null
21
+ ? vt('shell.version.layeredRemedyAny', { package: UI_PACKAGE })
22
+ : vt('shell.version.layeredRemedy', { package: UI_PACKAGE, version: expected })
23
+ }
24
+
25
+ /**
26
+ * This UI's own release — the layer's package.json version, baked into
27
+ * the build — against the one the descriptor says kinetis/vector pins.
28
+ * A mismatch is a warning, not a stop: the descriptor contract is what
29
+ * must match (useVectorSchema refuses another), the release only should.
30
+ * No pin on the server is no expectation, and no warning.
31
+ */
32
+ export function useVectorVersion() {
33
+ const { schema } = useVectorSchema()
34
+ const current = String(useRuntimeConfig().public.vector.uiVersion ?? '')
35
+ const expected = computed(() => schema.value?.ui?.expected ?? null)
36
+ const pair = computed(() => `${current}→${expected.value}`)
37
+ const dismissed = useState<string | null>(DISMISSED, () => import.meta.client ? sessionStorage.getItem(DISMISSED) : null)
38
+
39
+ const mismatch = computed(() => expected.value !== null && expected.value !== current)
40
+ const visible = computed(() => mismatch.value && dismissed.value !== pair.value)
41
+ const { hosted } = useVectorRuntime()
42
+ const remedy = computed(() => vectorUiRemedy(expected.value, hosted))
43
+
44
+ function dismiss() {
45
+ dismissed.value = pair.value
46
+
47
+ if (import.meta.client) {
48
+ sessionStorage.setItem(DISMISSED, pair.value)
49
+ }
50
+ }
51
+
52
+ return { current, expected, mismatch, visible, remedy, dismiss }
53
+ }
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'تبديل السمة',
9
9
  language: 'اللغة: {name}',
10
10
  languageFailed: 'تعذّر حفظ اللغة: {error}',
11
- unsupportedDescriptor: 'تنشر الواجهة البرمجية الإصدار {version} من الواصف، وهذه الإدارة تقرأ الإصدار {supported}. ثبّت إصدارين متوافقين من kinetis/vector وvector-ui.',
11
+ unsupportedDescriptor: 'تنشر الواجهة البرمجية الإصدار {version} من الواصف، وهذه الإدارة تقرأ الإصدار {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'إصدار واجهة الإدارة هذه {current}، بينما يتوقع kinetis/vector الإصدار {expected}.',
14
+ dismiss: 'إخفاء',
15
+ hostedRemedy: 'شغّل vendor/bin/kinetis vector:install-ui على الخادم، ثم أعد تشغيل العمّال.',
16
+ layeredRemedy: 'رقِّ {package} إلى الإصدار {version} وأعد البناء.',
17
+ layeredRemedyAny: 'ثبّت إصدار {package} الذي يتوقعه kinetis/vector هذا وأعد البناء.',
18
+ },
12
19
  nav: {
13
20
  main: 'الرئيسية',
14
21
  dashboard: 'لوحة المعلومات',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Design wechseln',
9
9
  language: 'Sprache: {name}',
10
10
  languageFailed: 'Die Sprache konnte nicht gespeichert werden: {error}',
11
- unsupportedDescriptor: 'Die API veröffentlicht die Deskriptor-Version {version}; dieser Admin liest Version {supported}. Installieren Sie zueinander passende Versionen von kinetis/vector und vector-ui.',
11
+ unsupportedDescriptor: 'Die API veröffentlicht die Deskriptor-Version {version}; dieser Admin liest Version {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Diese Admin-Oberfläche ist Version {current}; kinetis/vector erwartet {expected}.',
14
+ dismiss: 'Ausblenden',
15
+ hostedRemedy: 'Führen Sie vendor/bin/kinetis vector:install-ui auf dem Server aus und starten Sie die Worker neu.',
16
+ layeredRemedy: 'Aktualisieren Sie {package} auf {version} und bauen Sie neu.',
17
+ layeredRemedyAny: 'Installieren Sie die von diesem kinetis/vector erwartete Version von {package} und bauen Sie neu.',
18
+ },
12
19
  nav: {
13
20
  main: 'Hauptmenü',
14
21
  dashboard: 'Dashboard',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Toggle theme',
9
9
  language: 'Language: {name}',
10
10
  languageFailed: 'The language could not be saved: {error}',
11
- unsupportedDescriptor: 'The API publishes descriptor version {version}; this admin reads version {supported}. Install matching releases of kinetis/vector and vector-ui.',
11
+ unsupportedDescriptor: 'The API publishes descriptor version {version}; this admin reads version {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'This admin UI is version {current}; kinetis/vector expects {expected}.',
14
+ dismiss: 'Dismiss',
15
+ hostedRemedy: 'Run vendor/bin/kinetis vector:install-ui on the server, then restart the workers.',
16
+ layeredRemedy: 'Upgrade {package} to {version} and rebuild.',
17
+ layeredRemedyAny: 'Install the {package} release this kinetis/vector expects and rebuild.',
18
+ },
12
19
  nav: {
13
20
  main: 'Main',
14
21
  dashboard: 'Dashboard',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Cambiar tema',
9
9
  language: 'Idioma: {name}',
10
10
  languageFailed: 'No se pudo guardar el idioma: {error}',
11
- unsupportedDescriptor: 'La API publica la versión {version} del descriptor; este panel lee la versión {supported}. Instale versiones compatibles de kinetis/vector y vector-ui.',
11
+ unsupportedDescriptor: 'La API publica la versión {version} del descriptor; este panel lee la versión {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Esta interfaz de administración es la versión {current}; kinetis/vector espera {expected}.',
14
+ dismiss: 'Descartar',
15
+ hostedRemedy: 'Ejecute vendor/bin/kinetis vector:install-ui en el servidor y reinicie los workers.',
16
+ layeredRemedy: 'Actualice {package} a {version} y vuelva a compilar.',
17
+ layeredRemedyAny: 'Instale la versión de {package} que espera este kinetis/vector y vuelva a compilar.',
18
+ },
12
19
  nav: {
13
20
  main: 'Principal',
14
21
  dashboard: 'Panel',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Changer de thème',
9
9
  language: 'Langue : {name}',
10
10
  languageFailed: 'La langue n’a pas pu être enregistrée : {error}',
11
- unsupportedDescriptor: 'L’API publie la version {version} du descripteur ; cette administration lit la version {supported}. Installez des versions correspondantes de kinetis/vector et vector-ui.',
11
+ unsupportedDescriptor: 'L’API publie la version {version} du descripteur ; cette administration lit la version {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Cette interface d’administration est en version {current} ; kinetis/vector attend {expected}.',
14
+ dismiss: 'Masquer',
15
+ hostedRemedy: 'Exécutez vendor/bin/kinetis vector:install-ui sur le serveur, puis redémarrez les workers.',
16
+ layeredRemedy: 'Mettez {package} à jour vers {version} et recompilez.',
17
+ layeredRemedyAny: 'Installez la version de {package} attendue par ce kinetis/vector et recompilez.',
18
+ },
12
19
  nav: {
13
20
  main: 'Principal',
14
21
  dashboard: 'Tableau de bord',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'החלפת ערכת נושא',
9
9
  language: 'שפה: {name}',
10
10
  languageFailed: 'לא ניתן לשמור את השפה: {error}',
11
- unsupportedDescriptor: 'ה-API מפרסם את גרסה {version} של המתאר; ממשק הניהול הזה קורא את גרסה {supported}. התקינו גרסאות תואמות של kinetis/vector ו-vector-ui.',
11
+ unsupportedDescriptor: 'ה-API מפרסם את גרסה {version} של המתאר; ממשק הניהול הזה קורא את גרסה {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'ממשק הניהול הזה הוא בגרסה {current}; kinetis/vector מצפה לגרסה {expected}.',
14
+ dismiss: 'סגירה',
15
+ hostedRemedy: 'הריצו vendor/bin/kinetis vector:install-ui בשרת והפעילו מחדש את ה-workers.',
16
+ layeredRemedy: 'שדרגו את {package} לגרסה {version} ובנו מחדש.',
17
+ layeredRemedyAny: 'התקינו את גרסת {package} ש-kinetis/vector הזה מצפה לה ובנו מחדש.',
18
+ },
12
19
  nav: {
13
20
  main: 'ראשי',
14
21
  dashboard: 'לוח בקרה',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Cambia tema',
9
9
  language: 'Lingua: {name}',
10
10
  languageFailed: 'Impossibile salvare la lingua: {error}',
11
- unsupportedDescriptor: 'L’API pubblica la versione {version} del descrittore; questo pannello legge la versione {supported}. Installa versioni corrispondenti di kinetis/vector e vector-ui.',
11
+ unsupportedDescriptor: 'L’API pubblica la versione {version} del descrittore; questo pannello legge la versione {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Questa interfaccia di amministrazione è la versione {current}; kinetis/vector si aspetta {expected}.',
14
+ dismiss: 'Chiudi',
15
+ hostedRemedy: 'Esegui vendor/bin/kinetis vector:install-ui sul server, poi riavvia i worker.',
16
+ layeredRemedy: 'Aggiorna {package} alla versione {version} e ricompila.',
17
+ layeredRemedyAny: 'Installa la versione di {package} attesa da questo kinetis/vector e ricompila.',
18
+ },
12
19
  nav: {
13
20
  main: 'Principale',
14
21
  dashboard: 'Dashboard',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'テーマの切り替え',
9
9
  language: '言語:{name}',
10
10
  languageFailed: '言語を保存できませんでした:{error}',
11
- unsupportedDescriptor: 'API はディスクリプタのバージョン {version} を公開していますが、この管理画面が読めるのはバージョン {supported} です。対応する kinetis/vector と vector-ui をインストールしてください。',
11
+ unsupportedDescriptor: 'API はディスクリプタのバージョン {version} を公開していますが、この管理画面が読めるのはバージョン {supported} です。{remedy}',
12
+ version: {
13
+ mismatch: 'この管理画面のバージョンは {current} ですが、kinetis/vector は {expected} を想定しています。',
14
+ dismiss: '閉じる',
15
+ hostedRemedy: 'サーバーで vendor/bin/kinetis vector:install-ui を実行し、ワーカーを再起動してください。',
16
+ layeredRemedy: '{package} を {version} にアップグレードして再ビルドしてください。',
17
+ layeredRemedyAny: 'この kinetis/vector が想定する {package} のリリースをインストールして再ビルドしてください。',
18
+ },
12
19
  nav: {
13
20
  main: 'メイン',
14
21
  dashboard: 'ダッシュボード',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: '테마 전환',
9
9
  language: '언어: {name}',
10
10
  languageFailed: '언어를 저장할 수 없습니다: {error}',
11
- unsupportedDescriptor: 'API가 디스크립터 버전 {version}을(를) 게시하지만 이 관리자는 버전 {supported}을(를) 읽습니다. 서로 맞는 kinetis/vector와 vector-ui 릴리스를 설치하세요.',
11
+ unsupportedDescriptor: 'API가 디스크립터 버전 {version}을(를) 게시하지만 이 관리자는 버전 {supported}을(를) 읽습니다. {remedy}',
12
+ version: {
13
+ mismatch: '이 관리자 UI는 버전 {current}이지만 kinetis/vector는 {expected}을(를) 기대합니다.',
14
+ dismiss: '닫기',
15
+ hostedRemedy: '서버에서 vendor/bin/kinetis vector:install-ui를 실행한 뒤 워커를 다시 시작하세요.',
16
+ layeredRemedy: '{package}을(를) {version}(으)로 업그레이드하고 다시 빌드하세요.',
17
+ layeredRemedyAny: '이 kinetis/vector가 기대하는 {package} 릴리스를 설치하고 다시 빌드하세요.',
18
+ },
12
19
  nav: {
13
20
  main: '메인',
14
21
  dashboard: '대시보드',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Thema wisselen',
9
9
  language: 'Taal: {name}',
10
10
  languageFailed: 'De taal kon niet worden opgeslagen: {error}',
11
- unsupportedDescriptor: 'De API publiceert descriptorversie {version}; deze beheeromgeving leest versie {supported}. Installeer bij elkaar passende versies van kinetis/vector en vector-ui.',
11
+ unsupportedDescriptor: 'De API publiceert descriptorversie {version}; deze beheeromgeving leest versie {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Deze beheeromgeving is versie {current}; kinetis/vector verwacht {expected}.',
14
+ dismiss: 'Sluiten',
15
+ hostedRemedy: 'Voer vendor/bin/kinetis vector:install-ui uit op de server en herstart de workers.',
16
+ layeredRemedy: 'Werk {package} bij naar {version} en bouw opnieuw.',
17
+ layeredRemedyAny: 'Installeer de versie van {package} die deze kinetis/vector verwacht en bouw opnieuw.',
18
+ },
12
19
  nav: {
13
20
  main: 'Hoofdmenu',
14
21
  dashboard: 'Dashboard',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Przełącz motyw',
9
9
  language: 'Język: {name}',
10
10
  languageFailed: 'Nie udało się zapisać języka: {error}',
11
- unsupportedDescriptor: 'API publikuje deskryptor w wersji {version}; ten panel odczytuje wersję {supported}. Zainstaluj zgodne wydania kinetis/vector i vector-ui.',
11
+ unsupportedDescriptor: 'API publikuje deskryptor w wersji {version}; ten panel odczytuje wersję {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Ten panel ma wersję {current}; kinetis/vector oczekuje {expected}.',
14
+ dismiss: 'Zamknij',
15
+ hostedRemedy: 'Uruchom vendor/bin/kinetis vector:install-ui na serwerze, a następnie zrestartuj workery.',
16
+ layeredRemedy: 'Zaktualizuj {package} do wersji {version} i zbuduj ponownie.',
17
+ layeredRemedyAny: 'Zainstaluj wydanie {package}, którego oczekuje ten kinetis/vector, i zbuduj ponownie.',
18
+ },
12
19
  nav: {
13
20
  main: 'Główne',
14
21
  dashboard: 'Pulpit',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Alternar tema',
9
9
  language: 'Idioma: {name}',
10
10
  languageFailed: 'Não foi possível guardar o idioma: {error}',
11
- unsupportedDescriptor: 'A API publica a versão {version} do descritor; este painel lê a versão {supported}. Instale versões correspondentes de kinetis/vector e vector-ui.',
11
+ unsupportedDescriptor: 'A API publica a versão {version} do descritor; este painel lê a versão {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Este painel está na versão {current}; o kinetis/vector espera {expected}.',
14
+ dismiss: 'Dispensar',
15
+ hostedRemedy: 'Execute vendor/bin/kinetis vector:install-ui no servidor e reinicie os workers.',
16
+ layeredRemedy: 'Atualize {package} para {version} e volte a compilar.',
17
+ layeredRemedyAny: 'Instale a versão de {package} que este kinetis/vector espera e volte a compilar.',
18
+ },
12
19
  nav: {
13
20
  main: 'Principal',
14
21
  dashboard: 'Painel',
@@ -8,7 +8,14 @@ export default {
8
8
  toggleTheme: 'Alternar tema',
9
9
  language: 'Idioma: {name}',
10
10
  languageFailed: 'Não foi possível salvar o idioma: {error}',
11
- unsupportedDescriptor: 'A API publica a versão {version} do descritor; este painel lê a versão {supported}. Instale versões correspondentes de kinetis/vector e vector-ui.',
11
+ unsupportedDescriptor: 'A API publica a versão {version} do descritor; este painel lê a versão {supported}. {remedy}',
12
+ version: {
13
+ mismatch: 'Este painel está na versão {current}; o kinetis/vector espera {expected}.',
14
+ dismiss: 'Dispensar',
15
+ hostedRemedy: 'Execute vendor/bin/kinetis vector:install-ui no servidor e reinicie os workers.',
16
+ layeredRemedy: 'Atualize {package} para {version} e recompile.',
17
+ layeredRemedyAny: 'Instale a versão de {package} que este kinetis/vector espera e recompile.',
18
+ },
12
19
  nav: {
13
20
  main: 'Principal',
14
21
  dashboard: 'Painel',